package designPattern.factory.factorymethod.store;

import designPattern.factory.factorymethod.pizza.*;

public class NYStylePizzaStore extends PizzaStore{
    @Override
    Pizza creatPizza(String type) {
        Pizza pizza = null;
        if (type.equals("cheese")) {
            pizza = new NYStyleCheesePizza();
        } else if (type.equals("pepper")) {
            pizza = new NYStylePepperPizza();
        }
        return pizza;
    }
}
